package com.cndw.kungfu.model;


import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;


/**
 * 静态接口的单例
 * 有些乱了,混乱的引入,已被context取代
 * @author fantadust
 *
 */
@Component
public class DataInstance implements InitializingBean {
	private volatile static DataInstance instance;

	
	
	
	
	@Override
	public void afterPropertiesSet() throws Exception {
		instance = this;
	}
	
	public static DataInstance getInstance(){		
		return instance;	
	}





	
}
